const oLi = document.getElementsByTagName("li");
const box = document.querySelector(".box");
for (let i = 0; i < oLi.length; i++) {
    oLi[i].onmousemove = function () {
        box.style.left = this.offsetLeft + "px";
        box.style.top = this.offsetTop + "px";
        this.style.backgroundPositionY = "-150px";
    };
    oLi[i].onmouseout = function () {
        this.style.backgroundPositionY = "0px";
    };
}
